﻿<%@ Page Language="c#" CodeBehind="index.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.Linkman.Search.IndexPage" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
  <title>index</title>
  <uds:Style runat="server" Href="~/css/BasicLayout.css" />
</head>
<body ms_positioning="GridLayout" leftmargin="0" topmargin="0">
  <form id="Form1" method="post" runat="server">
    <table bordercolor="#111111" cellspacing="0" cellpadding="0" width="100%" border="0">
      <tr height="30">
        <td class="GbText" width="20" background="../../../Images/treetopbg.jpg" bgcolor="#c0d9e6" align="right"><font color="#003366" size="3"><IMG height="16" src="../../../DataImages/myLinkman.gif" width="16"></font></td>
        <td class="GbText" background="../../../Images/treetopbg.jpg" bgcolor="#e8f4ff" width="75" align="right" style="width: 75px">联系人管理</td>
        <td class="GbText" background="../../../Images/treetopbg.jpg" bgcolor="#e8f4ff" align="right">&nbsp;</td>
      </tr>
    </table>
    <table id="Table1" bordercolor="#93bee2" cellspacing="0" cellpadding="0" width="100%" border="0" style="border-collapse: collapse" class="GbText">
      <tr>
        <td style="width: 100px" colspan="2" align="center" height="36">联系人查询</td>
        <td height="36">请选择联系人类型
          <asp:DropDownList ID="ddl_SearchType" runat="server" AutoPostBack="True">
            <asp:ListItem Value="staff">员工联系人</asp:ListItem>
            <asp:ListItem Value="linkman">客户联系人</asp:ListItem>
            <asp:ListItem Value="custom">自定义联系人</asp:ListItem>
          </asp:DropDownList>
        </td>
      </tr>
      <tr>
        <td colspan="3">
          <table id="tbl_StaffSearch" bordercolor="#93bee2" cellspacing="0" cellpadding="0" width="100%" border="1" style="border-collapse: collapse" class="GbText" runat="server">
            <tr>
              <td align="center" height="24">姓名</td>
              <td height="24"><asp:TextBox ID="tbx_StaffName" runat="server" CssClass="inputcss" /></td>
              <td align="center" height="24">手机</td>
              <td height="24"><asp:TextBox ID="tbx_StaffMobile" runat="server" CssClass="inputcss" /></td>
            </tr>
            <tr>
              <td align="center" height="24">性别</td>
              <td height="24">
                <asp:DropDownList ID="ddl_StaffGender" runat="server" Width="130px">
                  <asp:ListItem Value="0">无限制</asp:ListItem>
                  <asp:ListItem Value="male">男</asp:ListItem>
                  <asp:ListItem Value="female">女</asp:ListItem>
                </asp:DropDownList>
              </td>
              <td align="center" height="24">Email</td>
              <td height="24"><asp:TextBox ID="tbx_StaffEmail" runat="server" CssClass="inputcss" /></td>
            </tr>
            <tr>
              <td align="center" height="24">职位</td>
              <td height="24">
                <asp:DropDownList ID="ddl_StaffPosition" runat="server" Width="130px" />
              </td>
              <td height="24">&nbsp;</td>
              <td height="24">&nbsp;</td>
            </tr>
          </table>
          <table id="tbl_LinkmanSearch" bordercolor="#93bee2" cellspacing="0" cellpadding="0" width="100%" border="1" style="border-collapse: collapse" class="GbText" runat="server">
            <tr>
              <td align="center" height="24">姓名</td>
              <td height="24"><asp:TextBox ID="tbx_LinkmanName" runat="server" CssClass="inputcss" /></td>
              <td align="center" height="24">性别</td>
              <td height="24">
                <asp:DropDownList ID="ddl_LinkmanGender" runat="server" Width="130px">
                  <asp:ListItem Value="0">无限制</asp:ListItem>
                  <asp:ListItem Value="male">男</asp:ListItem>
                  <asp:ListItem Value="female">女</asp:ListItem>
                </asp:DropDownList>
              </td>
            </tr>
            <tr>
              <td align="center" height="24">电话</td>
              <td height="24"><asp:TextBox ID="tbx_Telephone" runat="server" CssClass="inputcss" /></td>
              <td align="center" height="24">Email</td>
              <td height="24"><asp:TextBox ID="tbx_LinkmanEmail" runat="server" CssClass="inputcss" /></td>
            </tr>
            <tr>
              <td align="center" height="24">单位</td>
              <td height="24"><asp:TextBox ID="tbx_LinkmanUnit" runat="server" CssClass="inputcss" /></td>
              <td align="center" height="24">职务</td>
              <td height="24"><asp:TextBox ID="tbx_LinkmanPosition" runat="server" CssClass="inputcss" /></td>
            </tr>
            <tr>
              <td align="center" height="24">手机</td>
              <td height="24"><asp:TextBox ID="tbx_LinkmanMobile" runat="server" CssClass="inputcss" /></td>
              <td height="24">&nbsp;</td>
              <td height="24">&nbsp;</td>
            </tr>
          </table>
          <table id="tbl_CutomSearch" bordercolor="#93bee2" cellspacing="0" cellpadding="0" width="100%" border="1" style="border-collapse: collapse" class="GbText" runat="server">
            <tr>
              <td align="center" height="24">姓名</td>
              <td height="24"><asp:TextBox ID="tbx_CutomName" runat="server" CssClass="inputcss" /></td>
              <td align="center" height="24">性别</td>
              <td height="24">
                <asp:DropDownList ID="ddl_CustomGender" runat="server" Width="130px">
                  <asp:ListItem Value="0">无限制</asp:ListItem>
                  <asp:ListItem Value="male">男</asp:ListItem>
                  <asp:ListItem Value="female">女</asp:ListItem>
                </asp:DropDownList>
              </td>
            </tr>
            <tr>
              <td align="center" height="24">手机</td>
              <td height="24"><asp:TextBox ID="tbx_CutomMobile" runat="server" CssClass="inputcss" /></td>
              <td align="center" height="24">Email</td>
              <td height="24"><asp:TextBox ID="tbx_CutomEmail" runat="server" CssClass="inputcss" /></td>
            </tr>
            <tr>
              <td align="center" height="24">类别</td>
              <td height="24">
                <asp:DropDownList ID="ddl_CustomCatalog" runat="server" Width="130px" />
              </td>
              <td height="24">&nbsp;</td>
              <td height="24">&nbsp;</td>
            </tr>
          </table>
        </td>
      </tr>
      <tr>
        <td align="center" colspan="3" height="30">
          <asp:Button ID="btn_OK" runat="server" Text=" 查  询 " CssClass="buttoncss" Width="80px" /></td>
      </tr>
    </table>
    <table id="Table2" cellspacing="0" cellpadding="0" width="100%" border="0">
      <tr>
        <td colspan="2">
          <asp:DataGrid ID="dgrd_Staff" runat="server" Width="100%" AutoGenerateColumns="False" Visible="False">
            <AlternatingItemStyle BackColor="#E8F4FF"></AlternatingItemStyle>
            <ItemStyle Font-Size="X-Small"></ItemStyle>
            <HeaderStyle Font-Size="X-Small" ForeColor="White" BackColor="#337FB2"></HeaderStyle>
            <Columns>
              <asp:TemplateColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
                <ItemTemplate>
                  <asp:CheckBox name="cbx_" runat="server" ID="Checkbox1" />
                </ItemTemplate>
              </asp:TemplateColumn>
              <asp:TemplateColumn HeaderText="真实姓名">
                <ItemTemplate>
                  <asp:HyperLink runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.realname") %>' NavigateUrl='<%# "../../UnitiveDocument/Mail/Compose.aspx?Action=3&ClassID=0&Username="+ DataBinder.Eval(Container.DataItem,"staff_Name")+"&Name="+DataBinder.Eval(Container,"DataItem.RealName") %>' Target="_blank" ID="Hyperlink1" />
                </ItemTemplate>
              </asp:TemplateColumn>
              <asp:TemplateColumn HeaderText="手机">
                <ItemTemplate>
                  <asp:Label runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.mobile") %>' ID="Label1" />
                </ItemTemplate>
              </asp:TemplateColumn>
              <asp:BoundColumn DataField="Age" HeaderText="年龄" />
              <asp:BoundColumn DataField="SexName" HeaderText="性别" />
              <asp:BoundColumn DataField="Email" HeaderText="Email" />
              <asp:BoundColumn DataField="Position_Name" HeaderText="所属职位" />
              <asp:BoundColumn DataField="RQ" HeaderText="注册日期" />
              <asp:HyperLinkColumn Text="详细" Target="_blank" DataNavigateUrlField="staff_id" DataNavigateUrlFormatString="../StaffInfo.aspx?Staff_ID={0}">
                <HeaderStyle Width="10px"></HeaderStyle>
              </asp:HyperLinkColumn>
            </Columns>
            <PagerStyle HorizontalAlign="Right" Mode="NumericPages"></PagerStyle>
          </asp:DataGrid>
          <asp:DataGrid ID="dgrd_Linkman" runat="server" Width="100%" AutoGenerateColumns="False" Visible="False">
            <AlternatingItemStyle BackColor="#E8F4FF"></AlternatingItemStyle>
            <ItemStyle Font-Size="X-Small"></ItemStyle>
            <HeaderStyle Font-Size="X-Small" ForeColor="#FFFFFF" BackColor="#337FB2"></HeaderStyle>
            <Columns>
              <asp:TemplateColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
                <ItemTemplate>
                  <asp:CheckBox name="cbx_" runat="server" ID="Checkbox3" />
                </ItemTemplate>
              </asp:TemplateColumn>
              <asp:TemplateColumn HeaderText="姓名">
                <ItemTemplate>
                  <asp:HyperLink runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.name") %>' NavigateUrl='<%# "../../CM/Linkman.aspx?LinkmanID="+DataBinder.Eval(Container,"DataItem.ID")+"&from=mylinkman"%>' Target="_blank" ID="Hyperlink2" />
                </ItemTemplate>
              </asp:TemplateColumn>
              <asp:TemplateColumn HeaderText="手机">
                <ItemTemplate>
                  <asp:Label runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.mobile") %>' ID="Label2" />
                </ItemTemplate>
                <EditItemTemplate>
                  <asp:TextBox runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.mobile") %>' ID="Textbox2" />
                </EditItemTemplate>
              </asp:TemplateColumn>
              <asp:BoundColumn DataField="telephone" HeaderText="电话" />
              <asp:BoundColumn DataField="email" HeaderText="Email" />
              <asp:BoundColumn DataField="unitname" HeaderText="单位" />
              <asp:BoundColumn DataField="position" HeaderText="职务" />
              <asp:BoundColumn DataField="address" HeaderText="家庭地址" />
              <asp:HyperLinkColumn Text="详细" Target="_blank" DataNavigateUrlField="ID" DataNavigateUrlFormatString="../CM/Linkman.aspx?LinkmanID={0}&amp;from=mylinkman">
                <HeaderStyle Width="10px"></HeaderStyle>
              </asp:HyperLinkColumn>
            </Columns>
            <PagerStyle HorizontalAlign="Right" BackColor="#E8F4FF" Mode="NumericPages"></PagerStyle>
          </asp:DataGrid>
          <asp:DataGrid ID="dgrd_Custom" runat="server" Width="100%" AutoGenerateColumns="False" Visible="False">
            <AlternatingItemStyle BackColor="#E8F4FF" />
            <ItemStyle Font-Size="X-Small" />
            <HeaderStyle Font-Size="X-Small" ForeColor="#FFFFFF" BackColor="#337FB2" />
            <Columns>
              <asp:TemplateColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
                <ItemTemplate>
                  <asp:CheckBox name="cbx_" runat="server" ID="Checkbox2" />
                </ItemTemplate>
              </asp:TemplateColumn>
              <asp:TemplateColumn HeaderText="姓名">
                <ItemTemplate>
                  <asp:HyperLink runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.name") %>' NavigateUrl='<%# "CustomLinkmanInfo.aspx?ID="+DataBinder.Eval(Container,"DataItem.ID") %>' Target="_blank" ID="Hyperlink3" />
                </ItemTemplate>
              </asp:TemplateColumn>
              <asp:BoundColumn DataField="sexname" HeaderText="性别" />
              <asp:TemplateColumn HeaderText="手机">
                <ItemTemplate>
                  <asp:Label runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.mobile") %>' ID="Label3" />
                </ItemTemplate>
                <EditItemTemplate>
                  <asp:TextBox runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.mobile") %>' ID="Textbox1" />
                </EditItemTemplate>
              </asp:TemplateColumn>
              <asp:BoundColumn DataField="email" HeaderText="Email" />
              <asp:BoundColumn DataField="unitaddress" HeaderText="单位地址" />
              <asp:BoundColumn DataField="unittelephone" HeaderText="单位电话" />
              <asp:HyperLinkColumn Text="详细" Target="_blank" DataNavigateUrlField="ID" DataNavigateUrlFormatString="CustomLinkmanInfo.aspx?ID={0}">
                <HeaderStyle Width="10px"></HeaderStyle>
              </asp:HyperLinkColumn>
            </Columns>
            <PagerStyle HorizontalAlign="Right" BackColor="#E8F4FF" Mode="NumericPages" />
          </asp:DataGrid>
        </td>
      </tr>
    </table>
  </form>
</body>
</html>
